package com.zlll.winner.business.service.mall;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zlll.winner.business.model.mall.MallOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zlll.winner.business.vo.mall.MallOrderVo;

/**
 * <p>
 * 订单
 服务类
 * </p>
 *
 * @author qsx
 * @since 2019-10-08
 */
public interface IMallOrderService extends IService<MallOrder> {
    MallOrder saveMallOrder(MallOrder mallOrder) throws Exception;
    MallOrder orderPay(Long id,String address,String consignee,String contact) throws Exception;

    IPage<MallOrderVo> getMallOrderVoPage(String account,Integer pageSize,Integer pageNo,String goodsName,String orderNo,Integer status,Long startTime,Long endTime);

    MallOrderVo getMallOrderVoById(Long id);


    Boolean updateOrderStatus(Long id) throws Exception;

    /**
     * 取消订单
     * @param id
     * @return
     */
    Boolean cancelStatus(Long id,Long userId) throws Exception;

    Boolean updateReceivingInfo(Long id,Long userId,String address,String contact,String consignee);
}
